<template>
    <div id="app">
        <!-- <icf-background></icf-background> -->
        <router-view></router-view>
    </div>
</template>

<script>
import { mapMutations } from "vuex";

export default {
    // eslint-disable-next-line
    name: "app",
    components: {},
    created() {
        this.FETCH_STATE_CACHE();

        window.addEventListener("pagehide", () => {
            this.SAVE_STATE_CACHE();
        });
    },
    methods: {
        ...mapMutations(["FETCH_STATE_CACHE", "SAVE_STATE_CACHE"]),
    },
};
</script>
